// theme-1 小方块皮肤
// 

function column_template(){/*
<section class="clearfix wrap-cate col-md-12">

<div class="row">
  <img class="col-xs-3 col-sm-1 col-md-1 col-lg-1" style='margin-top:24px; max-width:96px;_width:expression(this.width > 96 ? "96px" : this.width);' src="{logo}" />
  <header class="sub-title col-xs-9 col-sm-11 col-md-11 col-lg-11">
    <h3>{head}</h3>
    <p class="text-muted">{des}</p>
    <div class="edit-func text-right">
      <a href="export.php?&appid={appid}" target="_blank"
        class="lang-export edit-item">导出</a>
      <a href="add-item.php?appid={appid}" target="_blank"
        class="lang-add add-item">添加</a>
      <a href="add-items.php?appid={appid}" target="_blank"
        class="lang-add-many add-item">批量添加</a>
      <a href="edit-app.php?&appid={appid}" target="_blank"
        class="lang-edit edit-item">编辑</a>
    </div>
  </header>

</div>
<div>{hrefs}</div>

</section>
*/}

function url_template(){/*
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
<div class="list-group">
  <div class="list-group-item list-group-item-info skin{skin}" style="min-height:120px;">
    <h4 class="list-group-item-heading">
      {i}. <a href="show.php?appid={appid}&id={shortcutid}" target="_blank">{shortcut}</a>
    </h4>
    <p class="list-group-item-text">{name}</p>
    <p class="list-group-item-text text-warning"><strong>{context}</strong></p>
    <p class="text-muted">{des}</p>
  </div>
</div>
<div style="text-align:right;margin:6px auto 12px;">
  <span class="btn btn-default" onclick="do_down({appid}, {shortcutid})" id="down-{appid}-{shortcutid}">
    <span class="lang-down text-center">没用过</span>(<span class="count">{down}</span>)
  </span>
  <span class="btn btn-success" onclick="do_up({appid}, {shortcutid})" id="up-{appid}-{shortcutid}">
    <span class="lang-up text-center">我用过</span>(<span class="count">{up}</span>)
  </span>
  <span class="btn btn-link" onclick="toggle_sns({appid}, {shortcutid})" id="sns-{appid}-{shortcutid}">
    <span class="lang-comment text-center">评论</span>(<span class="count">0</span>)
  </span>
</div>

<div id="sns-panel-{appid}-{shortcutid}" class="row hide">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
  <div class="panel panel-default">
    <div class="panel-body">
      <div class="sns-result"></div>
      <div class="form-horizontal">
        <div class="form-group">
          <div class="col-xs-10 col-sm-11 col-md-11 col-lg-11"><textarea rows="1" class="sns-content form-control"
            name="sns-content" placeholder=""></textarea></div>
          <div class="col-xs-2 col-sm-1 col-md-1 col-lg-1"><button onclick="send_sns({appid}, {shortcutid})" type="button" 
            class="lang-send btn btn-primary text-center form-control">发表</button></div>
        </div>
      </div>
    </div>
    <div class="panel-footer">
      <div class="row text-right">
        <a href="edit-item.php?id={shortcutid}&appid={appid}" target="_blank"
          class="lang-edit-shortcut edit-item text-center btn btn-primary">编辑快捷键</a>
        <button onclick="toggle_sns({appid}, {shortcutid})" type="button" 
          class="lang-hide-comment btn btn-link text-center">收起评论</button>
      </div>
    </div>
  </div>
</div>
</div>
</div>
*/}

//自动提示列表
function search_item_template(){/*
<div class="list-group" style="margin-bottom:4px;">
  <a href="show.php?appid={appid}&id={shortcutid}" target="_blank"
    class="list-group-item list-group-item-success active">
    <h4 class="list-group-item-heading">{shortcut}</h4>
    <p class="list-group-item-text">{name}</p>
  </a>
</div>
*/}

// 搜索结果
function search_template(){/*
<div class="wrap-item span2" style="float:left">
<div class="list-group">
  <div class="list-group-item list-group-item-info skin{skin} ">
    <a href="show.php?appid={appid}&id={shortcutid}">
      <h4 class="list-group-item-heading">{shortcut}</h4>
    </a>
    <p class="list-group-item-text">{name}</p>
  </div>
</div>
</div>
*/}


function edit_item_template(){/*
<a href="edit-item.php?id={shortcutid}&appid={appid}"
  class="lang-edit edit-item" style="display:inline;">编辑</a>
</a>
*/}


function theme_finally(){
  $("#search-container").show();
  $("#change-theme").show();
  $("#app-footer-nav").show();
}